package com.jie.deletefile.Gestures;

import android.content.Intent;
import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.Button;
import android.widget.LinearLayout;

import com.jie.deletefile.R;

public class GesturesActivity extends AppCompatActivity implements View.OnClickListener {

    private android.widget.Button set;
    private android.widget.Button test;
    private android.widget.LinearLayout activitymain2;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_gestures);
        this.activitymain2 = (LinearLayout) findViewById(R.id.activity_main2);
        test = (Button) findViewById(R.id.test);
        this.set = (Button) findViewById(R.id.set);
        set.setOnClickListener(this);
        test.setOnClickListener(this);
    }



    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.set:
                Intent intent = new Intent(GesturesActivity.this, SetActivity.class);
                startActivity(intent);
                break;
            case R.id.test:
                Intent intent1 = new Intent(GesturesActivity.this, TestActivity.class);
                startActivity(intent1);
                break;

        }
    }

}
